//
//  UIButton+FTButton.m
//  项目2
//
//  Created by rimi on 16/8/19.
//  Copyright © 2016年 wzc. All rights reserved.
//

#import "UIButton+FTButton.h"
#import "FTSearchButton.h"

@implementation UIButton (FTButton)
-(void)addBtnWithFrame:(CGRect)frame image:(UIImage *)image andtitle:(NSString *)title{
    FTSearchButton *btn = [[FTSearchButton alloc]initWithFrame:frame];
    [btn setImage:image forState:UIControlStateNormal];
    [btn setTitle:title forState:UIControlStateNormal];
    
}
-(void)addBtnWithFrame:(CGRect)frame image:(UIImage *)image andtitle:(NSString *)title withImageRect:(CGRect)imageRect withTitleRect:(CGRect)titleRect{
//    FTSearchButton *btn = [[FTSearchButton alloc]initWithFrame:frame];
    self.frame = frame;
    [self setImage:image forState:UIControlStateNormal];
    [self setTitle:title forState:UIControlStateNormal];
    [self imageRectForContentRect:imageRect];
    [self titleRectForContentRect:titleRect];

}
//-(CGRect)imageRectForContentRect:(CGRect)contentRect{
//    return CGRectMake(100, 100, 100, 100);
//}
//-(CGRect)titleRectForContentRect:(CGRect)contentRect{
//    return CGRectMake(100, 100, 100, 100);
//}
@end
